import {tableOptBtnConfig} from "../table";

export default {
  "tableId": "model",
  "name": "型号",
  "columns": [
    {
      label: '型号编号',
      children: [
        {
          key: 'fullModelNo',
        },
      ]
    },
    {
      label: '设备类型',
      children: [
        {
          key: 'deviceTypeName',
        },
      ],
    },
    {
      label: '设备厂家',
      children: [
        {
          key: 'manufacturerName',
        },
      ]
    },
    {
      label: '设备系列',
      children: [
        {
          key: 'seriesName',
        }
      ],
    },
    {
      label: '型号名',
      children: [
        {
          key: 'name',
        }
      ],
    },
    {
      label: '备注',
      children: [
        {
          key: 'remarks',
        }
      ],
    },
    {
      label: '更新时间',
      width: 100,
      children: [
        {
          updatedDate: true
        }
      ],
    },
    {
      "label": "操作",
      "operation": true,
      "width": 150,
      "children": [
        {
          "button": true,
          type: tableOptBtnConfig.edit.type,
        },
        {
          "button": true,
          type: tableOptBtnConfig.delete.type,
          class: 'hover-danger',
        }
      ]
    }
  ],
  "filters": [
    {
      "fieldType": "string",
      key: 'deviceType',
      label: '设备类型',
      "dataApi": API.deviceType.deviceTypeAll,
      "options": []
    },
    {
      "fieldType": "string",
      key: 'manufacturer',
      label: '设备厂家',
      "dataApi": API.manufacturer.manufacturerAll,
      "options": []
    },
    {
      "fieldType": "string",
      key: 'series',
      label: '设备系列',
      "dataApi": API.series.seriesAll,
      "options": []
    },
    {
      "fieldType": "input",
      key: 'name',
      label: '型号名称',
    },
    {
      "fieldType": "input",
      key: 'remarks',
      label: '备注',
    }
  ]
}
